<script>
	import store from "vuex"
	export default {
		onLaunch: function() {
			console.log('App Launch')
			let menuRectInfo = uni.getMenuButtonBoundingClientRect()
			let info = uni.getSystemInfoSync();
			this.$store.commit("setSystemInfo",info)
			this.$store.commit("setMenuRectInfo",menuRectInfo || {});
			this.$store.dispatch("getUsualAction");
		},
		onShow: function() {
			this.$socket.reset();
			console.log('App Show')
		},
		onHide: function() {
			this.$socket.onUnload();
			console.log('App Hide')
		}
	}
</script>

<style>
	/*每个页面公共css */
	@import '/wxcomponents/vant-weapp/dist/common/index.wxss';
	page{
		background-color: #f5f5f5;	
	}
</style>
